<include file="Public:header" />
<link href="__PUBLIC__/Catalog/css/goodList.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="main">
   <div class="title">
         <div class="title1">
             <a href="{:U('Products/cateindex')}" id="back"> < </a>商品例表
         </div>
   </div>
   <div class="filter">
        <div class="filter2">
           <span><a href="{:U('Products/scity')}">区域</a></span>
           <form action="{:U('Products/index')}" name="search" id="search" method="get" style="width:300px;float:right;">
           		<input type="hidden" name="citycode" value="{$citycode}"/>
           		<input type="hidden" name="cbegin" value='{$cbegin}'/>
           		<span class="price">
		    		<select  onChange="document.search.submit(); return false;" name="cid"  id="cid">
		    			<option value="-1">分类</option>
		    			<foreach name="category" item="vo">
		    			<option value="{$vo.categories_id}" <if condition="$vo.categories_id eq $cid">selected="selected"</if>>{$vo.categories_name}</option>
		    			</foreach>
		    		</select>       
		           </span>
		           <span class="price">
			           <select  onChange="document.search.submit(); return false;" name="sort"  id="sort">
			    			<option value="-1">排序</option>
			    			<option value="products_price asc" <if condition="$sort eq 'products_price asc'">selected="selected"</if>>价格升</option>
			    			<option value="products_price desc" <if condition="$sort eq 'products_price desc'">selected="selected"</if>>价格降</option>
			    			<option value="products_date_added desc" <if condition="$sort eq 'products_date_added desc'">selected="selected"</if>>最新发布</option>
			    		</select>     
		           </span>
		           <span class="brand">
		           	  <select  onChange="document.search.submit(); return false;" name="productsType"  id="productsType">
			    			<option value="-1" >类型</option>
			    			<option value="1" <if condition="$products_type eq 1">selected="selected"</if>>一口价</option>
			    			<option value="2" <if condition="$products_type eq 2">selected="selected"</if>>拍卖</option>
			    			<option value="2" <if condition="$products_type eq 3">selected="selected"</if>>公益</option>
			    		</select>     
		           </span>
           </form>
           
           
        </div>
   </div>
   <div class="products">
   		<if condition="$productlist eq ''">
   			<div class="products_list">暂无商品，试试其他地区的</div>
   		</if>
        <foreach name="productlist" item="vo">
	       <div class="products_list">
	           <table>
	                
	                 <tr bordercolor="#FF0000">
	                    <td style="width:80px; height:70px;"><a href="{:U('Products/detail')}?pid={$vo.products_id}"><img src="__PUBLIC__/images/products/thumb/s_{$vo.products_image}" /></a></td>
	                    <td style="width:190px; height:70px; padding-left: 5px;">
	                        <dl class="dls">
	                           <dt><a href="{:U('Products/detail')}?pid={$vo.products_id}" style="font-size:18px; color:#000;">{$vo.products_name} &nbsp;&nbsp;￥{$vo.products_price}</a></dt>
	                           <dd><a href="{:U('Products/index')}?publishuid={$vo.uid}" class="phone"><!-- {$vo.contact_tel} -->  {$vo.contact_person} &nbsp;成交量：{$vo.showcount}</a></dd>
	                           <dd><a href="#" class="dingwei"><!-- {$vo.prov_name}- -->{$vo.city_name}</a></dd>
	                           <dd><span class="time">{$vo.products_date_added}</span> <span class="what">{$vo.viewd}</span></dd>
	                        </dl>
	                    </td>
	                    <td style="width:70px; height:70px;">
	                           <p class="cc"><if condition="$vo['up_flag'] eq 1"><a href="#" class="ding"></a></if>
	                           <if condition="$vo['jiaji_flag'] eq 1"><a href="#" class="ji"></a></if></p>
	                    </td>
	                </tr>
	                
	           </table>
	       </div>
	    </foreach>       
   </div>
</div>
<script>
/* $('#cid').bind("click",function(){
	var cid = $('#cid').val();
	//alert(cid);
	var sort=$('#sort').val();
	var products_type=$('#productsType').val();
	if(cid!='-1' && cid!='{$cid}'){
		window.location.href='{:U("Products/index")}?cid='+cid+'&sort='+sort+'&productsType='+products_type+'&citycode='+{$citycode};
	}
	
});
$('#sort').bind("click",function(){
	var cid = $('#cid').val();
	var sort=$('#sort').val();
	var products_type=$('#productsType').val();
	if(sort!='-1' && sort!='{$sort}'){
		window.location.href='{:U("Products/index")}?cid='+cid+'&sort='+sort+'&productsType='+products_type+'&citycode='+{$citycode};
	}
	
});
$('#productsType').bind("click",function(){
	var cid = $('#cid').val();
	var sort=$('#sort').val();
	var products_type=$('#productsType').val();
	
	if(products_type!='-1' && products_type!='{$products_type}'){
		window.location.href='{:U("Products/index")}?cid='+cid+'&sort='+sort+'&productsType='+products_type+'&citycode='+{$citycode};
	}
	
});
 */
</script>
<include file="Public:footer" />